package nige.portable.commun;

import java.util.Calendar;

public class Utils {
	public static int getColor(int R,int V,int B) {
		return B+V*256+R*256*256;
	}
	public static String getTime() {
		return Calendar.getInstance().get(Calendar.HOUR_OF_DAY)+":"+
			Calendar.getInstance().get(Calendar.MINUTE)+":"+
			Calendar.getInstance().get(Calendar.SECOND);
	}
	public static int getInstant() {
		return Calendar.getInstance().get(Calendar.HOUR_OF_DAY)*60*60*1000+
			Calendar.getInstance().get(Calendar.MINUTE)*60*1000+
			Calendar.getInstance().get(Calendar.SECOND)*1000+
			Calendar.getInstance().get(Calendar.MILLISECOND)
			;
	}
}
